import Vue from 'vue'
import Router from 'vue-router'
import Home from '../components/tabbar/home'
import Find from '../components/tabbar/find'
import Order from '../components/tabbar/order'
import User from '../components/tabbar/user'
import Login from '../components/log/login'
import Address from '../components/log/address'
import Search from '../components/goods/search'
import Shop from '../components/shop/shop'
import Pay from '../components/shop/pay'
Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        redirect: '/home'
    }, {
        path: '/home',
        component: Home
    }, {
        path: '/find',
        component: Find
    }, {
        path: '/order',
        component: Order
    }, {
        path: '/user',
        component: User
    }, {
        path: '/login',
        component: Login
    }, {
        path: '/address',
        component: Address
    }, {
        path: '/search',
        component: Search
    }, {
        path: '/shop/:id',
        component: Shop
    }, {
        path: '/Pay',
        component: Pay
    }]
})